package com.hck.dao;

import com.hck.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    //示例二，三，四
    public List<SysUser> getUserListByPojo(SysUser sysUser);

    //示例一
    public List<SysUser> getUsersByRealName(String realName);

    //示例五,六，七
    public List<SysUser> getUserListByMap(Map<String,Object> userMap);

    //示例八，九，十
    public List<SysUser> getUserListByParams(@Param("realName") String realName, @Param("roleId") int roleId);

    //示例十一，十二
    public List<SysUser> getUserListWithRoleName(SysUser sysUser);

    //示例十五，十六，十七
    public List<SysUser> getUserListByRoleId(@Param("roleId") Integer roleId);

    //示例十九，二十，二一
    public List<SysUser> getUserAndAddressesByUserId(@Param("userId") Integer userId);
}
